package com.liyujie.networkrequest.remotedata;

import android.content.Context;
import android.content.SharedPreferences;

import dagger.Module;
import dagger.Provides;

@Module
public class SpModule {
    Context appComponent;

    public SpModule(Context appComponent) {
        this.appComponent = appComponent;
    }

    @Provides
    SharedPreferences provideSp() {
        return appComponent.getSharedPreferences("ThreePigeonFlowWater", Context.MODE_PRIVATE);
    }
}
